package com.springboot.java0317springboot.iocdemo;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * @author lenovo
 * @Description
 * @Date2025-3-17 15:27
 */
@Component
@Primary
public class KingstonMemory implements Memory{
    @Override
    public void read() {
        System.out.println("金斯顿内存在读数据");
    }

    @Override
    public void write() {
        System.out.println("金斯顿内存在写数据");
    }

}
